<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<link href="../../../js/layui/css/layui.css" rel="stylesheet"/>
<script src="../../subassembly/common/jquery-3.5.1.min.js" type="text/javascript"></script>
<script src="../../../js/layui/layui.js" type="text/javascript"></script>
<link href="../../subassembly/tree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet">
<script src="../../subassembly/tree/js/jquery.ztree.core.min.js"></script>
<script src="../../subassembly/tree/js/jquery.ztree.exedit.min.js"></script>
<script type="text/javascript" src="../../subassembly/tree/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="../../subassembly/tree/js/jquery.ztree.exhide.js"></script>
<script type="text/javascript" src="../../subassembly/tree/js/fuzzysearch.js"></script>
<script type="text/javascript" src="../../subassembly/common/underscore-min.js"></script>
<script type="text/javascript" src="../../subassembly/common/common.js"></script>
<body>
<button onclick="toClick()">点击一下</button>
<script>
  function toClick() {
    layui.use('layer', function () {
      var layer = layui.layer;
      //iframe窗
      var index = layer.open({
        type: 2,
        id: 'LAY_layuipro_change', //设定一个id，防止重复弹出
        title: "人员基础信息详情",
        shadeClose: true,
        skin: 'layui-layer-rim', //加上边框
        area: ['600px', '450px'], //宽高
        anim: 2,
        maxmin: true,
        content: ['./person/TreeForPerson.html', 'no'], //iframe的url，no代表不显示滚动条
        success: function (lay, index) {
          var iframe = window['layui-layer-iframe' + index];
        },
        cancel: function (index, lay) {
          layer.close(index);
          return true;
        }
      });
      // layer.full(index);
    });
  }
</script>
</body>
</html>
